package com.crm.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.crm.dao.OpenCloseDao;
import com.crm.entity.OpenClose;
import com.crm.service.OpenCloseService;

//开关表服务层的实现类
@Service
public class OpenCloseServiceImpl implements OpenCloseService{
	@Autowired 
	private OpenCloseDao openCloseDao;

	@Override
	public List<Map<String, Object>> getAll() {
		// TODO Auto-generated method stub
		return openCloseDao.getAll();
	}

	@Override
	public Integer update(OpenClose openClose) {
		// TODO Auto-generated method stub
		return openCloseDao.update(openClose);
	}

	@Override
	public OpenClose getAllIsOpen(OpenClose openClose) {
		// TODO Auto-generated method stub
		return openCloseDao.getAllIsOpen(openClose);
	}
}
